
// AdjustImageDlg.h : header file
//

#pragma once

#include "DDErrorDefine.h"
#include "DD_ImagePro.h"
#include "DD_ImgAnaly.h"
#include "DDThread.h"

#define WM_AnalyhMsgCallBackFun	   WM_USER + 0x112

// CAdjustImageDlg dialog
class CAdjustImageDlg : public CDialog, public DDThread
{
// Construction
public:
	CAdjustImageDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_ADJUSTIMAGE_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


private:
	DD_ImagePro	m_xImagePro;
	DD_ImgAnaly m_xImgAnaly;


public:
	HANDLE  m_hEvent;
	virtual int DDThdDispatch(HANDLE hExitEvent = NULL);


public:
	static int CALLBACK CB_AnalyMsgCallBackFun(DWORD dwMsgType,int nRet,void *pBuffer, DWORD dwBufSize,void *pContext);
	int AnalyMsgCallBackFun(DWORD dwAnalyMode,int nRet,void *pBuffer, DWORD dwBufSize);

	afx_msg LRESULT OnAnalyMsgCallBackFun(WPARAM wParam, LPARAM lParam);



// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButopentemp();
	afx_msg void OnBnClickedButTestdir();
	afx_msg void OnBnClickedButStart();
};
